<template>
	<div class="home-container layout-pd">
<!--		<el-row :gutter="15" class="home-card-one mb15">-->
<!--			<el-col-->
<!--				:xs="24"-->
<!--				:sm="12"-->
<!--				:md="12"-->
<!--				:lg="6"-->
<!--				:xl="6"-->
<!--				v-for="(v, k) in state.homeOne"-->
<!--				:key="k"-->
<!--				:class="{ 'home-media home-media-lg': k > 1, 'home-media-sm': k === 1 }"-->
<!--			>-->
<!--				<div class="home-card-item flex">-->
<!--					<div class="flex-margin flex w100" :class="` home-one-animation${k}`">-->
<!--						<div class="flex-auto">-->
<!--							<span class="font30">{{ v.num1 }}</span>-->
<!--							<span class="ml5 font16" :style="{ color: v.color1 }">{{ v.num2 }}%</span>-->
<!--							<div class="mt10">{{ v.num3 }}</div>-->
<!--						</div>-->
<!--						<div class="home-card-item-icon flex" :style="{ background: `var(${v.color2})` }">-->
<!--							<i class="flex-margin font32" :class="v.num4" :style="{ color: `var(${v.color3})` }"></i>-->
<!--						</div>-->
<!--					</div>-->
<!--				</div>-->
<!--			</el-col>-->
<!--		</el-row>-->
<!--		<el-row :gutter="15" class="home-card-two mb15">-->
<!--			<el-col :xs="24" :sm="14" :md="14" :lg="16" :xl="16">-->
<!--				<div class="home-card-item">-->
<!--					<div style="height: 100%" ref="homeLineRef"></div>-->
<!--				</div>-->
<!--			</el-col>-->
<!--			<el-col :xs="24" :sm="10" :md="10" :lg="8" :xl="8" class="home-media">-->
<!--				<div class="home-card-item">-->
<!--					<div style="height: 100%" ref="homePieRef"></div>-->
<!--				</div>-->
<!--			</el-col>-->
<!--		</el-row>-->
<!--		<el-row :gutter="15" class="home-card-three">-->
<!--			<el-col :xs="24" :sm="10" :md="10" :lg="8" :xl="8">-->
<!--				<div class="home-card-item">-->
<!--					<div class="home-card-item-title">快捷导航工具</div>-->
<!--					<div class="home-monitor">-->
<!--						<div class="flex-warp">-->
<!--							<div class="flex-warp-item" v-for="(v, k) in state.homeThree" :key="k">-->
<!--								<div class="flex-warp-item-box" :class="`home-animation${k}`">-->
<!--									<div class="flex-margin">-->
<!--										<i :class="v.icon" :style="{ color: v.iconColor }"></i>-->
<!--										<span class="pl5">{{ v.label }}</span>-->
<!--										<div class="mt10">{{ v.value }}</div>-->
<!--									</div>-->
<!--								</div>-->
<!--							</div>-->
<!--						</div>-->
<!--					</div>-->
<!--				</div>-->
<!--			</el-col>-->
<!--			<el-col :xs="24" :sm="14" :md="14" :lg="16" :xl="16" class="home-media">-->
<!--				<div class="home-card-item">-->
<!--					<div style="height: 100%" ref="homeBarRef"></div>-->
<!--				</div>-->
<!--			</el-col>-->
<!--		</el-row>-->
    <NoticeBar
        :speed ="speeds"
        text="🎉🎉🔥Diffusion上线啦,快来尝鲜,探索AI绘画，描绘无限可能。融合科技与艺术，释放创意之魂。每一笔每一色，皆是智慧与情感的交融。让AI之手引领艺术的未来，开启绘画的新时代。用算法书写想象，用数据绘制梦想，让创作之路更加丰富多彩，让艺术之光更加灿烂夺目"
    />
	</div>
</template>

<script setup lang="ts" name="home">
import { reactive,defineAsyncComponent } from 'vue';
import { storeToRefs } from 'pinia';
import { useThemeConfig } from '/@/stores/themeConfig';
const NoticeBar = defineAsyncComponent(() => import('/@/components/noticeBar/index.vue'));
// 定义变量内容
const storesThemeConfig = useThemeConfig();
const { themeConfig } = storeToRefs(storesThemeConfig);
const state = reactive({
	global: {
		dispose: [null, '', undefined],
	} as any,

});
const speeds=50;

</script>

<style scoped lang="scss">
$homeNavLengh: 8;
.home-container {
	overflow: hidden;
	.home-card-one,
	.home-card-two,
	.home-card-three {
		.home-card-item {
			width: 100%;
			height: 130px;
			border-radius: 4px;
			transition: all ease 0.3s;
			padding: 20px;
			overflow: hidden;
			background: var(--el-color-white);
			color: var(--el-text-color-primary);
			border: 1px solid var(--next-border-color-light);
			&:hover {
				box-shadow: 0 2px 12px var(--next-color-dark-hover);
				transition: all ease 0.3s;
			}
			&-icon {
				width: 70px;
				height: 70px;
				border-radius: 100%;
				flex-shrink: 1;
				i {
					color: var(--el-text-color-placeholder);
				}
			}
			&-title {
				font-size: 15px;
				font-weight: bold;
				height: 30px;
			}
		}
	}
	.home-card-one {
		@for $i from 0 through 3 {
			.home-one-animation#{$i} {
				opacity: 0;
				animation-name: error-num;
				animation-duration: 0.5s;
				animation-fill-mode: forwards;
				animation-delay: calc($i/4) + s;
			}
		}
	}
	.home-card-two,
	.home-card-three {
		.home-card-item {
			height: 400px;
			width: 100%;
			overflow: hidden;
			.home-monitor {
				height: 100%;
				.flex-warp-item {
					width: 25%;
					height: 111px;
					display: flex;
					.flex-warp-item-box {
						margin: auto;
						text-align: center;
						color: var(--el-text-color-primary);
						display: flex;
						border-radius: 5px;
						background: var(--next-bg-color);
						cursor: pointer;
						transition: all 0.3s ease;
						&:hover {
							background: var(--el-color-primary-light-9);
							transition: all 0.3s ease;
						}
					}
					@for $i from 0 through $homeNavLengh {
						.home-animation#{$i} {
							opacity: 0;
							animation-name: error-num;
							animation-duration: 0.5s;
							animation-fill-mode: forwards;
							animation-delay: calc($i/10) + s;
						}
					}
				}
			}
		}
	}
}
</style>
